<div class="panel panel-default panel-intro">
    {:build_heading()}

    <div class="panel-body">
        <div id="myTabContent" class="tab-content">
            <div class="tab-pane fade active in" id="one">
                <div class="widget-body no-padding">
                    <div id="toolbar" class="toolbar">
                        {:build_toolbar('refresh,add,edit,del')}
                        <div class="device" style="padding: 10px;">
                            <span>激活码总数量:{$device['count']} 已生成:{$device['used_count']} 还可生成:{$device['count'] - $device['used_count']}</span>
                        </div>
                    </div>
                    <table id="table" class="table table-striped table-bordered table-hover"
                           data-operate-edit="{:$auth->check('device/distribute/edit')}"
                           data-operate-del="{:$auth->check('device/distribute/del')}"
                           width="100%">
                    </table>
                </div>
            </div>

        </div>
    </div>
</div>

<script id="tpl" type="text/html">
    <span>激活码总数量:<%=count%> 已生成:<%=used_count%> 还可生成:<%=count - used_count%></span>
</script>